﻿@model KRM.Core.tblOrder
    
<table class="table table-hover table-bordered table-fix">
    <thead>
        <tr>
            <th>TaskID</th>
            <th>Task Type</th>
            <th>TaskTitle</th>
            <th>AssignedToUsername</th>
            <th>AssignedDate</th>
            <th>CompletedDate</th>
            <th>TaskDescription</th>
            <th>Status</th>
            <th>FinalComments</th>
            <th>Reason</th>
            <th>AssignedByUsername</th>
            <th>RelateToValueID</th>
        </tr>
    </thead>
    <tbody>
        @if (Model != null)
        {
            foreach (var item in Model.GetTasks())
            {
            <tr>
                <td>@item.TaskID</td>
                <td>@item.TaskType</td>
                <td><a href="javascript:;" onclick="PopupCenter('/orderview/viewtask/@item.TaskID?orderref=@Model.OrderRef', 600, 540)" title="View task">@item.TaskTitle</a></td>
                <td>@item.AssignedToUserName</td>
                <td>@item.AssignedDate</td>
                <td>@item.CompletedDate</td>
                <td>@item.TaskDescription</td>
                <td>@item.Status</td>
                <td>@item.FinalComments</td>
                <td>@item.Reason</td>
                <td>@item.AssignedByUserName</td>
                <td>@item.RelateToValueID</td>
            </tr>
            }
        }
    </tbody>
</table>
